from openai import OpenAI
from globle import configs as cfg

client = OpenAI(api_key=cfg.DEEPSEEK_API_KEY, base_url="https://api.deepseek.com")

# Round 1
messages = [{"role": "user", "content": "世界上最高的山峰是什么"}]
response = client.chat.completions.create(
    model="deepseek-chat",
    messages=messages
)
print(response.choices)
print('---------------------------------------------------')
messages.append(response.choices[0].message)
print(f"Messages Round 1: {messages}")
zzz
# Round 2
messages.append({"role": "user", "content": "第二高的呢？"})
response = client.chat.completions.create(
    model="deepseek-chat",
    messages=messages
)

messages.append(response.choices[0].message)
print(f"Messages Round 2: {messages}")
